const background="https://tse4-mm.cn.bing.net/th/id/OIP-C.PXIXtRrLxUNBM5j0e9dCLwHaDt?w=326&h=175&c=7&r=0&o=5&dpr=1.5&pid=1.7"

Page({
  data: {
    background:background
  },
  onLoad: function (options) {
    setInterval(() => {
      var data = wx.getStorageSync('data')//个人资料
      this.setData({
        avatarUrl: data.avatarUrl,
        nickname: data.nickname
      })
    }, 100)
  },
  logout() {
    wx.setStorageSync('data', null)
    wx.navigateTo({
      url: '/pages/hello/hello',
    })
  },
  bind() {
    wx.navigateTo({
      url: '/pages/data/data',
    })
  }
})